﻿using CPPEI.Coolzon.UI.Event;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using CPPEI.Coolzon.UI;
using CPPEI.Coolzon.Metadata;
using CPPEI.Coolzon.Event.NCL;

namespace CPPEI.Coolzon.Theme.Fashion.MainViewControl
{
    /// <summary>
    /// Header.xaml 的交互逻辑
    /// </summary>
    public partial class Header : UserControl
    {
        private Scene scene;
        public Header()
        {
            InitializeComponent();

            string dayOfWeek = System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.GetDayName(DateTime.Now.DayOfWeek);

            tbMessage.Text = DateTime.Now.ToString("yyyy年MM月dd日 ") + dayOfWeek + "   欢迎，" + UIContext.Current.UserName;
        }

        private void _ctlBtnShowNetConnectionState_Click(object sender, RoutedEventArgs e)
        {
            Windows.DisplayProxyStatusWindow window = new Windows.DisplayProxyStatusWindow();
            window.ShowDialog();
        }
    }
}
